<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-tab layui-tab-brief" th:fragment="tab">
    <ul class="layui-tab-title">
        <li th:class="${flag == 1 ? 'layui-this' : ''}"
            th:if="${#authPermit.checkPermit('/showProduct/addEditView.action')}">
            <a th:href="|/showProduct/addEditView.action?productId=${servProductVO.productId==null?0:servProductVO.productId}|"
               lay-text="产品信息">产品信息
            </a>
        </li>
        <li th:class="${flag == 2 ? 'layui-this' : ''}"
            th:if="${servProductVO.productId > 0 && #authPermit.checkPermit('/showProduct/editDescView.action')}">
            <a th:href="|/showProduct/editDescView.action?productId=${servProductVO.productId}|"
               lay-text="产品描述">产品描述
            </a>
        </li>
        <li th:class="${flag == 3 ? 'layui-this' : ''}"
            th:if="${servProductVO.productId > 0 && #authPermit.checkPermit('/showProduct/picture/detail.action')}">
            <a th:href="|/showProduct/picture/detail.action?productId=${servProductVO.productId}|"
               lay-text="图片视频">图片视频
            </a>
        </li>
        <li th:class="${flag == 4 ? 'layui-this' : ''}"
            th:if="${servProductVO.productId > 0 && #authPermit.checkPermit('/showProduct/guarantee/detail.action')}">
            <a th:href="|/showProduct/guarantee/detail.action?productId=${servProductVO.productId}|"
               lay-text="产品保障">产品保障
            </a>
        </li>
        <li th:class="${flag == 6 ? 'layui-this' : ''}"
            th:if="${servProductVO.defaultType !=2 && servProductVO.productId > 0 && #authPermit.checkPermit('/showProduct/relation/list.action')}">
            <a th:href="|/showProduct/relation/list.action?itemType=2&showProductId=${servProductVO.productId}&productName=${servProductVO.name}|"
               lay-text="关联后台产品">关联后台产品
            </a>
        </li>
        <li th:class="${flag == 7 ? 'layui-this' : ''}"
            th:if="${servProductVO.productId > 0 && #authPermit.checkPermit('/graphic/list.action')}">
            <a th:href="|/graphic/list.action?productId=${servProductVO.productId}|"
               lay-text="关联图文链接">关联图文链接
            </a>
        </li>
    </ul>
</div>

</html>